package com.study.samsung.Service;

import com.study.samsung.Dao.AddressDao;
import com.study.samsung.Dao.OrderXqDao;
import com.study.samsung.Entity.Address;

import java.util.List;

public class AddressService {
    AddressDao ad = new AddressDao();

    public List<Address> servletAll(Integer uid){
        return ad.selectAll(uid);
    }
    public Address selectOne(Integer aid){
        return ad.selectOne(aid);
    }

    public Integer addAddress(Address address){
        return ad.addAddress(address);
    }
    public Integer changeIsdefault(Integer i){
        return ad.changeIsdefault(i);
    }
    public Integer delAddress(Integer aid){
        return ad.delAddress(aid);
    }
    public Integer bianjiAddress(Address address){
        return ad.bianjiAddress(address);
    }
}
